a=[1,2,3,4,5]
b=['a','b','c','d','e']
c=zip(a,b)
c=dict(c)
print(c)
# for i in range(len(a)):
#     print(a[i],b[i])
#
import time
# 导入线程池模块对应的类
from multiprocessing.dummy import Pool

# 使用线程池方式执行
start_time = time.time()


def get_page(a):

    a=a.items()
    print("rul_num", a[0])
    time.sleep(2)
    print('name：', a[1])



# 实例化一个线程池对象
pool = Pool(4)
# 将列表中每一个列表元素传递给get_page进行处理。
pool.map(get_page, c)
pool.close()
pool.join()
end_time = time.time()
print(end_time - start_time)

#
#
#
